<?php
	require_once "includes/pagination.php";	
	if($_SESSION['user_id_sess']=="") {
		echo "<script type='text/javascript'> window.location='index.php?signin&url=mylist'; </script>";
	}
	$userId = $_SESSION['user_id_sess'];	
	//s_asc.png
	//s_desc.png
	if($_REQUEST['by']=="asc")
	{
		$by='desc';
	}
	else
	{
		$by='asc';
	}
	
	if($_REQUEST['by']=="asc")
	{
		$asc_desc='asc';
	}
	else if($_REQUEST['by']=="desc")
	{
		$asc_desc='desc';
	}
	else
	{
		$asc_desc='desc';
	}
	
	if($_REQUEST['ord']=="1")
	{
		$ord_by='i.item_id';
	}
	else if($_REQUEST['ord']=="2")
	{
		if($_SESSION['user_type_sess']=="3")
		{
			$ord_by='i.owner_id';
		}
		else if($_SESSION['user_type_sess']=="2" || $_SESSION['user_type_sess']=="4")
		{
			$ord_by='i.seller_id';
		}
		else
		{
			$ord_by='i.owner_id';
		}
	}
	else if($_REQUEST['ord']=="3")
	{
		$ord_by='u.first_name';
	}
	else if($_REQUEST['ord']=="4")
	{
		$ord_by='o.transaction_ID';
	}
	else if($_REQUEST['ord']=="5")
	{
		$ord_by='o.order_date';
	}
	else if($_REQUEST['ord']=="6")
	{
		$ord_by='o.shipped_date';
	}
	else if($_REQUEST['ord']=="7")
	{
		$ord_by='o.shipped_verified';
	}
	else
	{
		$ord_by='order_id';
	}
	
	
	$numTotalFeedback=mysql_num_rows(mysql_query("select * from tbl_feedback where comm_to='".$userId."'"));
	
	$sum_of_positive=mysql_fetch_array(mysql_query("select SUM(points) as total_positive from tbl_feedback where comm_to='".$userId."' and rate=1"));
	$sum_of_negative=mysql_fetch_array(mysql_query("select SUM(points) as total_negative from tbl_feedback where comm_to='".$userId."' and rate=3"));
	$totalTransaction=mysql_num_rows(mysql_query("select * from tbl_feedback where comm_to='".$userId."' and rate!=2"));
	
	$feedback_rate=($sum_of_positive['total_positive']+$sum_of_negative['total_negative'])/$totalTransaction;
	if($numTotalFeedback>0 && $totalTransaction>0)
	{
	   $strRate = number_format($feedback_rate,2).'%'. " (".$numTotalFeedback.")";
	}
	else if($numTotalFeedback==0 && $totalTransaction==0)
	{
	   $strRate = '100%'. " (0)";
	}
	else
	{
	   $strRate = '100%'. " (1)";
	}
	?>	
	
	
	
<style type="text/css">
	#sell-form { border:0px solid #CCC; padding:10px; float:left; vertical-align:top; width:93%; margin:2%; }

	#sell-form label{
	float: left;
	width: 130px;
	font-weight: bold;
	}
	
	#sell-form input, select, textarea{	
	width: 280px;
	margin-bottom: 5px;
	font-size:12px;	
	}
	
	#sell-form textarea{
	height: 250px;
	width: 450px;
	font-size:12px;
	}
	
	#sell-form a{
		float:left;
	}
	
	#sell-form #submitbutton{
	margin-left: 130px;
	margin-top: 5px;
	width: 90px;
	}
	
	#sell-form #sellby-div { float:left;  }
	
	#sell-form #sellby-div label { width: 70px; margin-bottom:2px; font-weight:normal; }
	#sell-form #sellby-div input { width: 1px; }
	
	#sell-form br{
	clear: left;
	}

	
</style>
<div id='panel'>
<a name="pending_feedback"></a>
<div class="fulldiv" style="width:700px;">

 <div class="fulldiv" style="margin:10px 0px 0px 0px;">
 	<div style="float:left; margin:0px 10px 0px 10px; padding-top:8px;"><strong class="orangehead">Pending Feedback Reviews</strong></div>
	<div class="greyarrowsml" onclick="show_hide_s_boxes('feedback_pending_merc')" id="arrow_feedback_pending_merc">&nbsp;</div>
	<?php
	$c_sql =  mysql_query("select fid from tbl_feedback where comm_to='".$_SESSION['user_id_sess']."' and rate=0") or die(mysql_error());
	$new_count = mysql_num_rows($c_sql);
	if($new_count!=0) {
	?>
	<div style="float:left; width:150px; padding:5px 0px 0px 15px; color:#6B6767; font-size:14px;" id="count_box_tran_history"><?php echo $new_count." NEW";?></div>
	<?php
	} ?>
	<div class="greytab_out" id="other1_feedback_pending_merc">
		<div class="whttab_left">&nbsp;</div>
		<div class="whttab_repeat"><a href="index.php?feedback=1&owner_id=<?php echo $userId?>">My Feedback: <?php echo $strRate?></a></div>
		<div class="whttab_right">&nbsp;</div>
	</div>
 </div>
<div id="feedback_pending_merc">
<div class="fullbox_top">&nbsp;</div>
<div class="fullbox_repeat">

	<div style="float: left; width: 660px; border:0px;" id='suc-msg'><?php echo $msg;?></div>
	<div style="float: left; width: 660px; border-bottom:2px solid #ccc;">
		<div class="cell_head" style="width: 100px;"><strong>Product</strong></div>
		<div class="cell_head" style="width: 100px;"><strong>Transaction</strong></div>
		<div class="cell_head" style="width: 100px;"><strong>Feedback for</strong></div>
		<div class="cell_head" style="width: 100px;"><strong>Transaction#</strong></div>
		<div class="cell_head" style="width: 100px;"><strong>Trans Date</strong></div>
		<div class="cell_head" style="width: 70px;"><strong>Feedback Expiring</strong></div>
		<div class="cell_head" style="width: 30px;">&nbsp;</div>
	</div>

	
    <div style="max-height:380px; overflow-y:auto; float:left;width:665px;" id="tbox">
	
      <?php 
	  
	  			ini_set('display_errors', 1); 
				ini_set('error_reporting', 'E_error'); 				
				 $itemPerPage=5;	
				 $total=0;			
				if (isset($_GET['page']) && (int)$_GET['page'] > 0) 
				{
					$pageNumber = (int)$_GET['page'];		
				} 
				else 
				{
					$pageNumber = 1;		
				}
				
				if((int)$_SESSION['user_type_sess']==1)
				{
					$sql_shocat="SELECT *,DATE_FORMAT(order_date,GET_FORMAT(DATE,'USA')) as tran_date FROM tbl_orders o LEFT JOIN tbl_users u ON o.ordered_by = u.user_id where ordered_by='".$_SESSION['user_id_sess']."' order BY ".$ord_by."  ".$asc_desc."";//limit ".$pageNumber.", ".$itemPerPage."";	
				}
				else if((int)$_SESSION['user_type_sess']==2 || (int)$_SESSION['user_type_sess']==4)
				{
					$sql_shocat="SELECT *,DATE_FORMAT(order_date,GET_FORMAT(DATE,'USA')) as tran_date FROM tbl_orders o LEFT JOIN tbl_users u ON o.ordered_by = u.user_id left join tbl_items i on o.item_id=i.item_id  where (seller_id='".$_SESSION['user_id_sess']."')  OR (ordered_by='".$_SESSION['user_id_sess']."') order BY ".$ord_by."  ".$asc_desc."";//limit ".$pageNumber.", ".$itemPerPage."";
				}
				else if((int)$_SESSION['user_type_sess']==3)
				{
					$sql_shocat="SELECT *,DATE_FORMAT(order_date,GET_FORMAT(DATE,'USA')) as tran_date FROM tbl_orders o LEFT JOIN tbl_users u ON o.ordered_by = u.user_id left join tbl_items i on o.item_id=i.item_id  where (seller_id='".$_SESSION['user_id_sess']."')  OR (ordered_by='".$_SESSION['user_id_sess']."') order BY ".$ord_by."  ".$asc_desc."";//limit ".$pageNumber.", ".$itemPerPage."";				 
				}
				else
				{
					$sql_shocat="SELECT *,DATE_FORMAT(order_date,GET_FORMAT(DATE,'USA')) as tran_date FROM tbl_orders o LEFT JOIN tbl_users u ON o.ordered_by = u.user_id left join tbl_items i on o.item_id=i.item_id  where (seller_id='".$_SESSION['user_id_sess']."')  OR (ordered_by='".$_SESSION['user_id_sess']."') order BY ".$ord_by."  ".$asc_desc."";//limit ".$pageNumber.", ".$itemPerPage."";				 
				}
				//echo $sql_shocat;
				//echo '<br>';
				$itemPerPage=15;
				 $rst_shocat=mysql_query(getPagingQuery($sql_shocat,$itemPerPage));
				 $numRows = mysql_num_rows($rst_shocat);
				 
				 $i=(int)(($itemPerPage*($pageNumber-1))+1);
				 //echo $numRows;
				 
				 if($numRows>0) {				
					 while($row_shocat = mysql_fetch_array($rst_shocat)) 
					 {					
													
						$sqlSelItem="select p.*,i.seller_id,i.owner_id from tbl_items i left join tbl_product p  on i.product_id=p.product_id where item_id=".$row_shocat['item_id']."";
						
						$sqlSelItem="select p.*,i.seller_id,i.owner_id from tbl_items i left join tbl_product p  on i.product_id=p.product_id where item_id=".$row_shocat['item_id']."";
						//echo $sqlSelItem.'<br>';
						$rstSelItem=mysql_query($sqlSelItem);
						$rowSelItem=mysql_fetch_array($rstSelItem);
						
						if($rowSelItem['seller_id']==$rowSelItem['owner_id']) {

						if(is_array($rowSelItem))
						{
							$product_name=$rowSelItem['product_name'];
							$seller_id=$rowSelItem['seller_id'];
							$product_id=$rowSelItem['product_id'];
							$owner_id=$rowSelItem['owner_id'];
						}
						if($row_shocat['isWhole']=='0')
						{
										
							if($userId==$row_shocat['ordered_by'])
							{
								$tans="Purchased From";
								$user=$seller_id;
								$user1=$row_shocat['ordered_by'];
								$editItem="<a href='sendowner.php?ownerid=".$seller_id."&jobid=".$product_id."&type=M' target='_blank' class='yellow_btn' style='padding:8px 5px 8px 5px; height:18px;'>Contact User</a>";	
							}
							else if($userId==$row_shocat['seller_id'])
							{
								//$tans="Purchased From";
								$tans="Sold To";
								$user=$owner_id;
								$editItem="<a href='sendowner.php?ownerid=".$row_shocat['ordered_by']."&jobid=".$product_id."&type=M' target='_blank' class='yellow_btn' style='padding:8px 5px 8px 5px; height:18px;'>Contact User</a>";	
								
								$tans1="Sold To";
								$user1=$row_shocat['ordered_by'];
							}
							else if($userId==$row_shocat['owner_id'])
							{
								$tans="Purchased By";
								$user=$seller_id;
								$editItem="<a href='sendowner.php?ownerid=".$seller_id."&jobid=".$product_id."&type=M' target='_blank' class='yellow_btn' style='padding:8px 5px 8px 5px; height:18px;'>Contact User</a>";	
								
								$tans1="Sold To";
								$user1=$row_shocat['ordered_by'];
							}
							else
							{
								$tans="Sold To";
								$user1=$row_shocat['ordered_by'];
								$editItem="<a href='sendowner.php?ownerid=".$user."&jobid=".$product_id."&type=M' target='_blank' class='yellow_btn' style='padding:8px 5px 8px 5px; height:18px;'>Contact User</a>";	
							}	
												
							$sqlSelItem="select * from tbl_users where user_id='".$user."'";
							$rstSelItem=mysql_query($sqlSelItem);
							$rowSelItem=mysql_fetch_array($rstSelItem);						
							if(is_array($rowSelItem))
							{
								$order_by=$rowSelItem['first_name'];
							}
							else
							{
								$order_by="";
							}
							if($userId==$row_shocat['seller_id'] || $userId==$row_shocat['owner_id'])
							{
								$sqlSelItem1="select * from tbl_users where user_id='".$user1."'";
								$rstSelItem1=mysql_query($sqlSelItem1);
								$rowSelItem1=mysql_fetch_array($rstSelItem1);						
								if(is_array($rowSelItem1))
								{
									$user_by=$rowSelItem1['first_name'];
								}
								else
								{
									$user_by="";
								}
							}
						}
						else
						{
							
							$order_by_id=$row_shocat['ordered_by'];
							$product_id=$row_shocat['item_id'];
														
							
							$sqlSelItem="select * from tbl_users where user_id='".$order_by_id."'";
							$rstSelItem=mysql_query($sqlSelItem);
							$rowSelItem=mysql_fetch_array($rstSelItem);						
							if(is_array($rowSelItem))
							{
								$user_by=$rowSelItem['first_name'];
							}
							else
							{
								$user_by="";
							}
							
							$sqlSelItem_prod="select * from tbl_wholeseller_product where product_id='".$product_id."'";
							$rstSelItem_prod=mysql_query($sqlSelItem_prod);
							$rowSelItem_prod=mysql_fetch_array($rstSelItem_prod);
							if(is_array($rowSelItem_prod))
							{
								$sold_by_id=$rowSelItem_prod['posted_by'];
								$product_name=$rowSelItem_prod['product_name'];
							}
							else
							{
								$sold_by_id="0";
							}
							
							$sqlSelItem="select * from tbl_users where user_id='".$sold_by_id."'";
							$rstSelItem=mysql_query($sqlSelItem);
							$rowSelItem=mysql_fetch_array($rstSelItem);						
							if(is_array($rowSelItem))
							{
								$order_by=$rowSelItem['first_name'];
							}
							else
							{
								$order_by="";
							}
							//$editItem="<a href='javascript:void(0);' onclick='show_contact_user_box($sold_by_id,$product_id,\"$product_name\")' id='contact_user_$product_id' class='yellow_btn' style='padding:8px 5px 8px 5px; height:18px;'>Contact User</a>";		
													
						}
							
						$transaction_ID = substr($row_shocat['transaction_ID'],0,10);
						//echo "userid".$userId."<br>";
						//echo "order_by".$row_shocat['ordered_by'];
						if($userId==$row_shocat['ordered_by'])
						{
							$comm_to=$row_shocat['seller_id'];
						}
						else
						{
							$comm_to=$row_shocat['ordered_by'];
						}
						
						
						$y=date('Y',strtotime($row_shocat['order_date']));
						$d=date('d',strtotime($row_shocat['order_date']));
						$m=date('m',strtotime($row_shocat['order_date']));
								
						$futureTime = mktime(0, 0, 0, date($m), date($d)+31, date($y));
						$currtime=mktime(0, 0, 0, date('m'), date('d'), date('Y'));
						$d=date('m-d-Y',$futureTime);
						
						if($futureTime>$currtime)
						{
						
						$lenPrd=strlen($product_name);
						if($lenPrd>10)
						{
						  $prdname=substr($product_name,0,10)."...";;
						}
						else
						{
						  $prdname=$product_name;
						}
					
						$lenTrn=strlen($row_shocat['transaction_ID']);
						if($lenTrn>10)
						{
						  $trnID=substr($row_shocat['transaction_ID'],0,10)."...";
						}
						else
						{
						  $trnID=$row_shocat['transaction_ID'];
						}
	
				?>

					<div style="float:left; width:649px; margin:3px 0px 3px;">
						<div class="cell_row" style="width: 100px;"><a href="index.php?products=<?php echo $row_shocat['item_id']; ?>" <?php if($lenPrd>10) { ?>onmouseover="mouseover_feedback_product('<?php echo $product_name;?>');" onmouseout="mouseout_feedback_product('<?php echo $product_name;?>');" <?php } ?>><?php if($product_name!='') echo $prdname; else echo '&nbsp;';?><?php if($lenPrd>10) { ?></a><?php } ?>
				<div style="display:none; background-color:#CCCCCC; border:1px solid #666666; width:250px; padding:10px; position:absolute" id="div_feedback_product_<?php echo $product_name;?>"><?php echo $product_name;?></div></div>
						<div class="cell_row" style="width: 100px;"><?php echo $tans;?></div>
						<div class="cell_row" style="width: 100px;"><?php if($user_by!='') echo $user_by; else echo '&nbsp;';?></div>
						<div class="cell_row" style="width: 100px;">
<a href="javascript:void(0);" onmouseover="mouseover_feedback_transaction('<?php echo $row_shocat['transaction_ID']?>');" onmouseout="mouseout_feedback_transaction('<?php echo $row_shocat['transaction_ID']?>');"><?php echo $trnID;?></a>
				<div style="display:none; background-color:#CCCCCC; border:1px solid #666666; width:250px; padding:10px; position:absolute" id="div_feedback_transaction_<?php echo $row_shocat['transaction_ID']?>"><?php echo $row_shocat['transaction_ID']?></div>						</div>
						<div class="cell_row" style="width: 100px;"><?php echo $row_shocat['tran_date']."  &nbsp;";?></div>
						<div class="cell_row" style="width: 70px;"><?php echo $d."  &nbsp;";?></div>
						
						<?php
						$extExpDate=explode("-",$d);
						$expDt=mktime(0,0,0,$extExpDate[0],$extExpDate[1],$extExpDate[2]);
						$present_date=time();
						
						if($present_date>$expDt)
						{
						$sqlExp="select * from tbl_feedback where order_id='".$row_shocat['order_id']."' and comm_to='".$comm_to."' and comm_by='".$_SESSION['user_id_sess']."'";
						$exeExp=mysql_query($sqlExp) or die(mysql_error());
						$numExp=mysql_num_rows($exeExp);
						if($numExp==0)
						{
						?>
						<div class="cell_row" style="width: 30px;"><font color="#FF0000"><strong>Expired</strong></font></div>
						<?php
						}
						else
						{
						?>
						<div class="cell_row" style="width: 30px;"><font color="green"><strong>Rated</strong></font></div>
						<?php
						}
						}
						else
						{
						$sqlExp="select * from tbl_feedback where order_id='".$row_shocat['order_id']."' and comm_to='".$comm_to."' and comm_by='".$_SESSION['user_id_sess']."'";
						$exeExp=mysql_query($sqlExp) or die(mysql_error());
						$numExp=mysql_num_rows($exeExp);
						if($numExp==0)
						{
						?>
						<div class="cell_row" style="width: 30px;"><a href="index.php?Postfeedback=<?php echo $product_id;?>&comm_to=<?php echo $comm_to?>&type=<?php echo $row_shocat['isWhole']?>&order_id=<?php echo $row_shocat['order_id']?>&owner_id=<?php echo $owner_id?>" class="yellow_btn" style="text-decoration:none; float:left; padding:8px 5px 8px 5px; height:16px; margin:3px 0px;">Rate</a></div>
						<?php } else { ?>
						<div class="cell_row" style="width: 30px;"><font color="green"><strong>Rated</strong></font></div>
						<?php } ?><?php } ?>
					</div>
				
					<?php
				}
				else
				{
				    //echo 'No records found';
				} 
				$i++;
			}
		} 
		}
     else{
	?>
	                  No records found
	<?php
	}
	?>	
	</div>
	<div align="center" style="float:left; width:660px; text-align:center">
		<?php		   
		   $link="mySwapen&ord=".$_REQUEST['ord']."&by=".$asc_desc."";
		   echo $disp=getPagingLink($sql_shocat,$itemPerPage,$link);							   
		?>    
	</div>	
	

</div>
<div class="fullbox_bot">&nbsp;</div>
</div>
<br /><br />
<hr style="float:left; width:500px; display:none;" id="hr_line_feedback_pending_merc" />
</div>
</div>

<script type="text/javascript">
function show_contact_user_box(sold_by_id,product_id,product_name)
{
	//href='sendowner.php?ownerid=".$sold_by_id."&jobid=".$product_id."&type=M'
	var ntop = (( $(window).height() - $('#contact_user_'+product_id).height()) / 2+$(window).scrollTop()) - 100;
	var nleft = ( $(window).width() - $('#contact_user_'+product_id).width()) / 2+$(window).scrollLeft();

	$('#recieverid').val(sold_by_id);
	$('#jobid').val(product_id);
	$('#type').val('M');
	$('#productname').val(product_name);
	$('#contact_user_box').css({'left': '', 'top':ntop}).fadeIn('slow');
	
}
function send_message()
{
	var recieverid 	= $('#recieverid').val();
	var jobid 	= $('#jobid').val();
	var type 	= $('#type').val();
	var txtSub 	= $('#txtSub').val();
	var txtQuery 	= $('#txtQuery').val();
	var productname	= $('#productname').val();
	var url = "<?php echo $base_url;?>sendowner.php";
	$.post(url,
	{ 'recieverid': recieverid,'jobid':jobid, 'type':type, 'txtSub':txtSub, 'txtQuery':txtQuery},
		function(data)
		{
			
			if(trim(data)=='ok')
			{
				
				$('#msgbox').html('<h1 style="float:left; width:100%; text-align:center;">Message sent successfully</h1><div align="center" style="float:left; width:98%; padding:5px;"><input type="button" onclick="$(\'#contact_user_box\').hide();" name="" value="Close" class="refer_btn" style="margin:0px; height:30px;" /></div>');
			}
			else
			{
				$('#msgbox').html('<h1 style="float:left; width:100%; text-align:center;">Message not sent.</h1><div align="center" style="float:left; width:98%; padding:5px;"><input type="button" onclick="$(\'#contact_user_box\').hide();" name="" value="Close" class="refer_btn" style="margin:0px; height:30px;" /></div>');
			}
		},
	'html'
	);
}
function trim(stringToTrim) {
 return stringToTrim.replace(/^\s+|\s+$/g,"");
}

function show_ship_verify_box(product_id)
{
	//$('#trans_box').html('Trans No. <input type="text" maxlength="10" size="9" id="item_code" /><br /><br /><input type="hidden" id="product_id" /><input type="button" class="refer_btn" value="Verify" style="margin-left:5px;" onclick="verify_item_code()" /> &nbsp; <input type="button" class="refer_btn" value="Close" onclick="$(\'#ship_verify_box\').hide();" style="margin-left:5px;" />');
	var pos = $('#down_arrow_'+product_id).position();
	var ntop = pos.top;
	var nleft = parseFloat(pos.left)-50;
	$('#ship_verify_box').css({'left': nleft, 'top':ntop}).fadeIn('slow');
	$('#product_id').val(product_id);
	
}
function verify_item_code()
{
	var product_id = $('#product_id').val();
	var item_code = $('#item_code').val();
	var shipped_date = $('#shipped_date').val();
	var shipped_month = $('#shipped_month').val();
	var shipped_year = $('#shipped_year').val();
	var send_date = '';
	if(shipped_date!='' && shipped_month!='' && shipped_year!='')
	{
		var send_date = shipped_year+'-'+shipped_month+'-'+shipped_date;
	}
	
	if(item_code=='')
	{
		alert('Please enter a valid code');
	}
	else
	{
		var url = "<?php echo $base_url;?>verify_item_code.php";
		$.post(url,
		{ 'item_code': item_code,'product_id':product_id,'shipped_date':send_date},
		function(data)
		{
			if(trim(data)!='fail')
			{
				data = data.split('###');
				$('#trans_box').html('You have successfully verified ('+item_code+') '+data[3]+' with buyer '+data[1]+' '+data[2]+' <br /> <input type="button" class="refer_btn" value="Close" onclick="$(\'#ship_verify_box\').hide();" style="margin-left:5px;" />');
				$('#d_'+product_id).html(data[0]+' <img src="./images/success.gif" border="0" />');
			}
			else
			{
				$('#trans_box').html('The 10 digit buyer code does not match our records, please try again. If you are sure this is correct code please contact us at support@swapen.com <br /><input type="button" class="refer_btn" value="Close" onclick="$(\'#ship_verify_box\').hide();" style="margin-left:5px;" />');
			}
			
		},
		'html');
	}
}


	
		function validatechk()
		{
			var chks = document.getElementsByName('chk');
			var checkCount = 0;
			for (var i = 0; i < chks.length; i++)
			{
			if (chks[i].checked)
			{
				checkCount++;
			}
			}
			if (checkCount == 0)
			{
				alert("Please select atleast one transaction.");
				return false;
			}
			else
			{
				
				var selected = new Array();
				$('#tbox input:checked').each(function() {
				    selected.push($(this).val());
				
				});
				var arr_cnt = selected.length;
				var temp;
				for(i=0;i<arr_cnt;i++)
				{
					if(i==0)
						temp = selected[i];
					else
						temp+="_"+selected[i]; 
				}
				//alert(temp);
				var x=document.getElementById("form_his");
				x.action="amazon_refund.php?trans="+temp;
				x.submit();
			}
			return true;
		}
</script>


<script language="javascript" type="text/javascript">
function mouseover_feedback_transaction(feedtran)
{
  document.getElementById('div_feedback_transaction_'+feedtran).style.display='';
}
function mouseout_feedback_transaction(feedtran)
{
  document.getElementById('div_feedback_transaction_'+feedtran).style.display='none';
}
function mouseover_feedback_product(feedprod)
{
  document.getElementById('div_feedback_product_'+feedprod).style.display='';
}
function mouseout_feedback_product(feedprod)
{
  document.getElementById('div_feedback_product_'+feedprod).style.display='none';
}
//function mouseover_tran(totno3)
//{
//  document.getElementById('div_tran_'+totno3).style.display='';
//}
//function mouseout_tran(totno3)
//{
//  document.getElementById('div_tran_'+totno3).style.display='none';
//}

</script>